<div class="BlockBar"><?php echo CHtml::activeLabel($model, 'user_add_title'); ?></div>
<?php $form = $this->beginWidget('CActiveForm', array('id' => 'user', 'enableAjaxValidation' => true, 'htmlOptions'=>array('enctype'=>'multipart/form-data'))); ?>
<table cellspacing="1" cellpadding="4" class="tab">
    <tr class="row">
        <td width="73" class="align-right"><?php echo $form->labelEx($model, 'user_name'); ?>:</td>
        <td width="389"><?php echo $form->textField($model, 'user_name'); ?>
            <?php echo $form->error($model, 'user_name'); ?></td>
    </tr>
    <tr class="row">
        <td width="73" class="align-right"><?php echo $form->labelEx($model, 'user_pass'); ?>:</td>
        <td width="389"><?php echo $form->textField($model, 'user_pass') ?>
            <?php echo $form->error($model, 'user_pass'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'usergroup_level'); ?>:</td>
        <td><?php echo $form->dropDownList($model, 'usergroup_level', $model->userLevel); ?>
            <?php echo $form->error($model, 'usergroup_level'); ?></td>
    </tr>
        <tr class="row">
        <td width="73" class="align-right"><?php echo $form->labelEx($model, 'user_money'); ?>:</td>
        <td width="389"><?php echo $form->textField($model, 'user_money') ?>
            <?php echo $form->error($model, 'user_money'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_gender'); ?>:</td>
        <td><?php echo $form->dropDownList($model, 'user_gender', $model->userGenderArray); ?>
            <?php echo $form->error($model, 'user_gender'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_email'); ?>:</td>
        <td><?php echo $form->textField($model, 'user_email'); ?>
            <?php echo $form->error($model, 'user_email'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_address'); ?>:</td>
        <td><?php echo $form->textField($model, 'user_address'); ?>
            <?php echo $form->error($model, 'user_address'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_phone'); ?>:</td>
        <td><?php echo $form->textField($model, 'user_phone'); ?>
            <?php echo $form->error($model, 'user_phone'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_face'); ?>:</td>
        <td><?php echo $form->fileField($model, 'user_face'); ?>
            <?php echo $form->error($model, 'user_face'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_status'); ?>:</td>
        <td><?php echo $form->dropDownList($model, 'user_status', $model->userStatusArray); ?>
            <?php echo $form->error($model, 'user_status'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($model, 'user_active'); ?>:</td>
        <td><?php echo $form->dropDownList($model, 'user_active', $model->userActiveArray); ?>
            <?php echo $form->error($model, 'user_active'); ?></td>
    </tr>
    <tr class="rows">
        <td class="rows"></td>
        <td class="rows"><?php echo CHtml::submitButton(Yii::t('app', '提 交'), array('class' => 'btn')); ?></td>
    </tr>
</table>
<?php $this->endWidget(); ?>